package spring;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

//@Component("zhangsan")
@Data
public class Human {
    @Value("zhangsan")
    String name;
    @Qualifier("myCar2")
    @Autowired
    List<Car> cars;
   // Car car;
    Map relatives;
}
